<template>
  <div class="pop" v-show="isshow">
    <div class="popup">
      <h1>{{title}}</h1>
      <div>{{content}}</div>
      <button class="button1" @click="h">取消</button>
      <button @click="h">确定</button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isshow: false,
      title:"",
      content:""
    };
  },
  methods: {
    h() {
      this.isshow = false;
    },
  },
};
</script>

<style lang="scss" scoped>
.pop {
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.popup {
  display: inline-block;
  width: 420px;
  height: 200px;
  padding-bottom: 10px;
  vertical-align: middle;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #ebeef5;
  font-size: 18px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  text-align: left;
  overflow: hidden;
  backface-visibility: hidden;
  h1 {
    padding-left: 0;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1;
    color: #303133;
  }
  div {
    width: 100%;
    height: 75%;
    padding-left: 36px;
    padding-right: 12px;
  }
  .button1 {
    //   margin-left: 72%;
    margin: 0 5px 0 72%;
  }
}
</style>